%{
#include <stdio.h>
#include "y.tab.h"
%}

%%
[0-9]+           return NUMBER;
heat             return TOKHEAT;
on|off           return STATE;
target           return TOKTARGET;
temperature      return TOKTEMPERATURE;
send             return TOKSEND;
packet           return TOKPACKET;
exit             return EXIT;
\n
[ \t]+
%%

